<table width="100%">
  <tbody>
    <tr>
      <td nowrap="nowrap" align="right">
       <?php JHTML::_('farm.plantPlanDropList', 0, false); ?></td>
    </tr>
  </tbody>
</table>
<table cellspacing="1" class="adminlist">
  <thead>
    <tr>
      <th width="20"> # </th>
      <th width="20"> <input type="checkbox" onclick="checkAll(19);" value="" name="toggle"></th>
      <th nowrap="nowrap"> 农场编号 </th>
      <th nowrap="nowrap"> 植物名称 </th>
      <th nowrap="nowrap"> 记录人员 </th>
      <th nowrap="nowrap"> 计划播种日 </th>
      <th nowrap="nowrap"> 计划收获日 </th>
      <th nowrap="nowrap"> 计划产量 </th>
      <th nowrap="nowrap"> 计划操作 </th>
      <th nowrap="nowrap"> 操作日期 </th>
    </tr>
  </thead>
  <tbody>
    <?php 
		$i = -1;
		$data = empty($this->data)?array():$this->data;
		if (empty($data['ope'])) $data['ope'] = array();
		foreach($data['ope'] as $opeArr):
        	foreach($opeArr as $opeid => $ope):?>
    <tr class="row<?php echo $i++?>">
      <td align="right"><?php echo $opeid;?></td>
      <td width="20"><input type="checkbox" onclick="isChecked(this.checked);" value="<?php echo $opeid;?>" name="cid[]" id="cb<?php echo $i?>" /></td>
      <td><?php echo $data['field'];?></td>
      <td><?php echo $data['plant'];?></td>
      <td><?php echo $data['uid'];?></td>
      <td><?php echo $data['pre_sowing_date'];?></td>
      <td><?php echo $data['pre_harvest'];?></td>
      <td><?php echo $data['pre_production'];?></td>
      <td><?php echo $ope['custom'];?></td>
      <td><?php echo $ope['preDate'];?></td>
    </tr>
    	<?php endforeach;?>
    <?php endforeach;?>
  </tbody>
</table>
